<?php
// +----------------------------------------------------------------------
// | SparkERP 优秀的进销存系统 
// +----------------------------------------------------------------------
// | Copyright (c) 2022~2099 http://erp.sparkshop.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai  <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\model\data;

use app\model\BaseModel;

class BrandCate extends BaseModel
{
    /**
     * 关联品牌
     * @return \think\model\relation\BelongsToMany
     */
    public function brands()
    {
        return $this->belongsToMany(Brand::class, BrandCateRelation::class, 'brand_id', 'cate_id');
    }
}